﻿using System.Web;
using System.Web.Optimization;

namespace QRCode.Web
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"
                        //"~/Scripts/jquery-1.12.0.min.js"
                        ));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"
                        //"~/Scripts/jquery-1.12.0.min.js"
                        ));

            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap/bootstrap/js/bootstrap.js",
                      "~/Scripts/respond.js"));

            #region jQWidget
            bundles.Add(new ScriptBundle("~/bundles/jqx").Include(
                      "~/jqwidgets/jqxcore.js",
                      "~/jqwidgets/jqxdropdownbutton.js",
                      //"~/jqwidgets/jqxdropdownlist.js",
                      "~/jqwidgets/jqxscrollbar.js",
                      "~/jqwidgets/jqxbuttons.js",
                      "~/jqwidgets/jqxtree.js",
                      "~/jqwidgets/jqxpanel.js"));

            bundles.Add(new StyleBundle("~/Content/jqx").Include(
                      "~/jqwidgets/styles/jqx.base.css",
                      "~/jqwidgets/styles/jqx.bootstrap.css"));
            #endregion
            bundles.Add(new ScriptBundle("~/bundles/qrcodeplugin").Include(
                      "~/Scripts/qrcode.js",
                      "~/Scripts/qrcode.lib.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrapplugin").Include(
                      "~/Scripts/moment-with-locales.js",
                      //"~/Scripts/datetimepicker/bootstrap-datetimepicker.min.js",
                      //"~/Scripts/datetimepicker/locales/bootstrap-datetimepicker.zh-CN",
                      //"~/Scripts/bootstrap-datetimepicker.js",
                      "~/Scripts/bootstrap-dialog.js",
                      "~/Scripts/bootstrap-select.js",
                      "~/Scripts/bootstrap-select-zh_CN.js",
                      "~/Scripts/bootstrap-table.js",
                      "~/Scripts/bootstrap-table-zh-CN.js",
                      "~/Scripts/bootstrap-treeview.js",
                      "~/Scripts/jquery.twbsPagination.js",
                      "~/Scripts/My97DatePicker/WdatePicker.js"
                      ));
            bundles.Add(new ScriptBundle("~/bundles/tableExportplugin").Include(
                     "~/Scripts/bootstrap-table-export.js",
                     "~/Scripts/tableExport.jquery.plugin-master/tableExport.js"
                     ));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));

            bundles.Add(new StyleBundle("~/Content/bootstrapplugincss").Include(
                      //"~/Content/bootstrap-combined.min.css",
                      //"~/Content/build/build_standalone.less",
                      //"~/Content/less/datetimepicker.less",
                      //"~/Content/bootstrap-datetimepicker.min.css",
                      "~/Content/bootstrap-dialog.css",
                      "~/Content/bootstrap-select.css",
                      "~/Content/bootstrap-table.css",
                      "~/Content/bootstrap-treeview.css"));

            bundles.Add(new StyleBundle("~/Content/controlcss").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/StyleControl.css"));
            
        }
    }
}
